import './assets/base.css'
import 'element-plus/dist/index.css'
import router from './router'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import axios from 'axios'

import { createApp } from 'vue'
import App from './App.vue'

const devURL = 'http://localhost:7529'

axios.defaults.baseURL = devURL
axios.defaults.withCredentials = true

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(ElementPlus, {locale: zhCn}).use(router)
app.config.globalProperties.$URL = devURL;
app.mount('#app')
